package com.example.demo.entity;

import java.util.Map;

import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.NoArgsConstructor;

/*
 * 三阶段保存 - 上传完成后，回调通知上传结果 -> 详见： <br>
 */
public class UploadComplete {

    @NoArgsConstructor
    public static class UploadResponse {
        @JsonProperty("status_code")
        private int status;

        @JsonProperty("headers")
        private Map<String, String> headers;

        @JsonProperty("body")
        private String body;
    }

    @NoArgsConstructor
    public static class Request {
        @JsonProperty("file_id")
        private String fileId;

        @JsonProperty("request")
        private UploadAddress.Request request;

        @JsonProperty("response")
        private UploadResponse response;

        @JsonProperty("send_back_params")
        private Map<String, String> sendBackParams;

        public String getFileId() {
            return fileId;
        }

        public UploadAddress.Request getRequest() {
            return request;
        }

        public UploadResponse getResponse() {
            return response;
        }

        public Map<String, String> getSendBackParams() {
            return sendBackParams;
        }

        public void setFileId(String fileId) {
            this.fileId = fileId;
        }
    }
}
